#!/usr/bin/python
# -*- coding:utf-8 -*-

import time


def date_wrap(t):
    if not t:
        assert 'input error'
    return time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(t))


def time_wrap(t):
    if not t:
        assert 'input error'
    s = t % 60
    m = t / 60 % 60
    h = t / 3600
    return '%02d:%02d:%02d' % (h, m, s)


if __name__ == '__main__':
    print time_wrap(6000)
    print date_wrap(time.time())
